using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using OVS.BusinessObjects;
using OVS.DAL;

namespace OVS.BLL
{
	public partial class Image_HaarBLL
	{
		private Image_HaarDAO _Image_HaarDAO;

		public Image_HaarDAO Image_HaarDAO
		{
			get { return _Image_HaarDAO; }
			set { _Image_HaarDAO = value; }
		}

		public Image_HaarBLL()
		{
			Image_HaarDAO = new Image_HaarDAO();
		}
		public List<Image_Haar> GetImage_Haars()
		{
			try
			{
				return Image_HaarDAO.GetImage_Haars();
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public Image_Haar GetImage_Haar(int imha_id)
		{
			try
			{
				return Image_HaarDAO.GetImage_Haar(imha_id);
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public int AddImage_Haar(Image_Haar oImage_Haar)
		{
			try
			{
				return Image_HaarDAO.AddImage_Haar(oImage_Haar);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int UpdateImage_Haar(Image_Haar oImage_Haar)
		{
			try
			{
				return Image_HaarDAO.UpdateImage_Haar(oImage_Haar);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int RemoveImage_Haar(Image_Haar oImage_Haar)
		{
			try
			{
				return Image_HaarDAO.RemoveImage_Haar(oImage_Haar);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int RemoveImage_Haar(int imha_id)
		{
			try
			{
				return Image_HaarDAO.RemoveImage_Haar(imha_id);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public List<Image_Haar> DeserializeImage_Haars(string Path)
		{
			try
			{
				return GenericXmlSerializer<List<Image_Haar>>.Deserialize(Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public void SerializeImage_Haars(string Path, List<Image_Haar> Image_Haars)
		{
			try
			{
				GenericXmlSerializer<List<Image_Haar>>.Serialize(Image_Haars, Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
	}
}
